﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using AttributeRouting;
using AttributeRouting.Web.Mvc;
using PH.Model.Standards;
using PH.Logic.Standards;
namespace PH.Web.Management.Areas.Standard.Controllers
{
    [RouteArea("Standard")]
    [RoutePrefix("Subject")]
    [Authorize]
    public class SubjectController : Controller
    {
        [Route("")]
        public ActionResult Index()
        {
            return View();
        }

        [Route("Edit/{id:int?}")]
        public ActionResult Edit(int id = 0)
        {
            SubjectModel model;
            if (id > 0)
                model = SubjectLogic.GetSubject(id);
            else
                model = new SubjectModel();
            return PartialView(model);
        }

        
    }
}
